package com.myproject.thread.join;

public class JoinThread extends AnotherThread {

    @Override
    public void run() {
        for (int i=0;i<10;i++){
            try {
                AnotherThread.sleep(1000);
            } catch (InterruptedException e) {
                e.printStackTrace();
            }
            System.out.println(AnotherThread.currentThread()+" count times "+i);
        }
    }
}
